** changes (ah) 09nov2021
*  - remove r2 from iv output. deleted r2 from all globals with IV in their names.
*  - remove "Adj " from r2 labels, because we always report r2.
*  - replace r2 label "R2" by "R$^2"
*  - replace N  label "N" by "Observations"
*  - replace widstat label "F Stat" by "F-Statistic"
*  - remove the empty line by deleting "prefoot(~\\)"
*  - changed format for N from "0" to "%6.0fc"
*  - removed number from ols table columns for consitency

global estout_pre                prehead("\begin{threeparttable}[b] \begin{tabular}{l*{@M}{c}}" "\hline\hline"  "\multicolumn{@span}{l}{\depvarnote} \\" "\hline") 
global estout_pre_panelA         prehead("\begin{threeparttable}[b] \begin{tabular}{l*{@M}{c}}" "\hline\hline" "\multicolumn{@span}{l}{\depvarnoteA} \\ \hline")
global estout_pre_panelB         prehead("\hline" "\multicolumn{@span}{l}{\depvarnoteB} \\ \hline")
global estout_pre_panelC         prehead("\hline" "\multicolumn{@span}{l}{\depvarnoteC} \\ \hline")
global estout_post               postfoot("\hline"  "\end{tabular}" "\begin{tablenotes} \item {\footnotesize \tablenote}" "\item {\footnotesize \$^{*}p<0.10, ^{**}p<0.05, ^{***}p<0.01\$}" "\end{tablenotes}" "\end{threeparttable}")

global estout_params             cells(b(fmt(3)) se(star par fmt(3))) starlevels(* .1 ** .05 *** .01) varlabels(_cons Constant) label stats(N r2, labels("Observations" "$ R^2 $") fmt(%6.0fc 2))  style(tex) collabels(none) posthead(\hline)   
global estout_params_txt         cells(b(fmt(3)) se(star par fmt(3))) starlevels(* .1 ** .05 *** .01) varlabels(_cons Constant) label stats(N r2, labels("Observations" "$ R^2 $") fmt(%6.0fc 2)) 
global estout_params_logit       cells(b(fmt(3)) se(star par fmt(3))) starlevels(* .1 ** .05 *** .01) varlabels(_cons Constant) label stats(N r2_p, fmt(%6.0fc 2) labels(N r2\_p)) style(tex) collabels(none) posthead(\hline) 
global estout_params_txt_logit   cells(b(fmt(3)) se(star par fmt(3))) starlevels(* .1 ** .05 *** .01) varlabels(_cons Constant) label stats(N r2_p, fmt(%6.0fc 2)) 
global estout_params_IV          cells(b(fmt(3)) se(star par fmt(3))) starlevels(* .1 ** .05 *** .01) varlabels(_cons Constant) label stats(N widstat, fmt(%6.0fc 2) labels("Observations" "KP F-Stat"))  style(tex) collabels(none) posthead(\hline) 
global estout_params_IV_txt      cells(b(fmt(3)) se(star par fmt(3))) starlevels(* .1 ** .05 *** .01) varlabels(_cons Constant) label stats(N widstat, fmt(%6.0fc 2) labels("Observations" "KP F-Stat")) 

global estout_params_nostats     cells(b(fmt(3)) se(star par fmt(3))) starlevels(* .1 ** .05 *** .01) varlabels(_cons Constant) label  style(tex) collabels(none) posthead(\hline)   
global estout_params_nostats_txt cells(b(fmt(3)) se(star par fmt(3))) starlevels(* .1 ** .05 *** .01) varlabels(_cons Constant) label
global estout_stats_cpfe         stats(N r2 cpfe, labels("Observations" "R$^2$" "cpFE") fmt(%6.0fc 2))
global estout_stats_IV_cpfe      stats(N widstat cpfe, labels("Observations" "KP F-Stat" "cpFE") fmt(%6.0fc 2))

global estout_mgroups_ops            pattern(1 0 0 1 0 0)       prefix(\multicolumn{@span}{c}{) suffix(}) span erepeat(\cmidrule(lr){@span})
global estout_mgroups2_ops           pattern(1 0 1 0)           prefix(\multicolumn{@span}{c}{) suffix(}) span erepeat(\cmidrule(lr){@span})
global estout_mgroups_products_ops   pattern(1 0 0 1 0 0 1 0 0) prefix(\multicolumn{@span}{c}{) suffix(}) span erepeat(\cmidrule(lr){@span})

global y1 1990
global y2 2005
global convergencecontrol c.germanexpshare$y1#c.after$y2
//global convergencecontrol c.germanexp$y1#c.after$y2
global didsample didsample${y1}${y2}
global after after$y2
global expdv exp_xdeu

global convergencecontrol ""

global rhsoptions a(product year) cluster(product) old



